<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/11/21
 * Time: 11:50
 */
namespace App\HttpController\Api;

use EasySwoole\EasySwoole\Config;
use EasySwoole\Mysqli\Client;
use Swoole\Memory\Pool;

class Index extends Base
{

    public function getVideo()
    {
        $conf = Config::getInstance()->getConf('MYSQL');

        $config = new \EasySwoole\Mysqli\Config($conf);
        $db = new Client($config);
        $db->queryBuilder()->get('video');
        $data = $db->execBuilder();
        return $this->writeJson(200, "", $data);
    }


}